#include "init.h"
#include "FreeRTOS.h"
#include "task.h"
void send_data_to_usart(USART_TypeDef *USARTx,unsigned char *str)
{
	unsigned int index = 0 ;
	//taskENTER_CRITICAL();//freertos
	while(str[index]!='\0'){
		while ((USARTx->SR & 0X40) == 0);
		USARTx->DR = str[index];
		index++;
	}
	//taskEXIT_CRITICAL();
}
